package com.ruoyi.materialCuttingPlan.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import javax.validation.constraints.NotBlank;

/**
 * 门窗用料计算结果对象 mcp_material_results
 * 
 * @author ruoyi
 * @date 2025-07-04
 */
public class McpMaterialResults extends McpBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 结果ID，主键自增 */
    private Long id;

    /** 关联的门窗ID */
    @Excel(name = "关联的门窗ID")
    private Long windowId;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String materialName;

    /** 材料长度(单位:mm) */
    @Excel(name = "材料长度(单位:mm)")
    private BigDecimal materialLength;

    /** 材料数量 */
    @Excel(name = "材料数量")
    private Long materialCount;

    /** 每米重量 */
    @Excel(name = "每米重量")
    private BigDecimal materialWeightPerMeter;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setWindowId(Long windowId) 
    {
        this.windowId = windowId;
    }

    public Long getWindowId() 
    {
        return windowId;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setMaterialLength(BigDecimal materialLength) 
    {
        this.materialLength = materialLength;
    }

    public BigDecimal getMaterialLength() 
    {
        return materialLength;
    }

    public void setMaterialCount(Long materialCount) 
    {
        this.materialCount = materialCount;
    }

    public Long getMaterialCount() 
    {
        return materialCount;
    }

    public BigDecimal getMaterialWeightPerMeter() {
        return materialWeightPerMeter;
    }

    public void setMaterialWeightPerMeter(BigDecimal materialWeightPerMeter) {
        this.materialWeightPerMeter = materialWeightPerMeter;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("windowId", getWindowId())
            .append("materialName", getMaterialName())
            .append("materialLength", getMaterialLength())
            .append("materialCount", getMaterialCount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
